<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>后盾人</title>
  </head>
  <body></body>
  <script>
    let hd = {
      title: "后盾人",
      url: "houdunren.com",
      teacher: {
        name: "向军大叔"
      }
    };
    let json = JSON.stringify(hd, null, 2);
    console.log(json);

    let obj = JSON.parse(json, (key, value) => {
      if (key == "title") {
        value = "[后盾]-" + value;
      }
      return value;
    });
    console.log(obj.title);
  </script>
</html>
